using System;
using UMC.Data;
using UMC.Data.Sql;
namespace UMC.Wiki
{
    public class Program
    {
        public static void Main(string[] args)
        {

            UMC.Web.WebClient.Register(() => new UMC.Wiki.Activities.SubjectFlow());
            UMC.Web.WebClient.Register(() => new UMC.Web.Activities.SystemSetupActivity());
            UMC.Wiki.DataFactory.Instance();
            UMC.Data.HotCache.LoadFile();
            Initializer.Register(Console.Out, new UMC.Wiki.Entities.Initializer());
            UMC.Web.WebServlet.AppConf.Put("Mobile", "/UMC/Subject/Section/Home").Put("Open", "mac");
            int port = args.Length > 0 ? Utility.IntParse(args[0], 5188) : 5188;
            UMC.Host.HttpServier.Start(port, new UMC.Web.WebServlet());
            HotCache.Close();
        }
    }
}

